<!--左侧导航开始-->
<nav th:fragment="menu">
    <div class="nav-close"><i class="fa fa-times-circle"></i>
    </div>
    <div class="sidebar-collapse">
        <ul class="nav" id="side-menu">
            <li class="nav-header">
                <div class="dropdown profile-element">
                    <span><img alt="image" class="img-circle" th:src="${photo}" style="width:64px;height:64px;"/></span>
                    <a data-toggle="dropdown" class="dropdown-toggle" href="#">
                        <span class="clear">
                               <span class="block m-t-xs"><strong class="font-bold" th:text="${uname}"></strong></span>
                                <span class="text-muted text-xs block" th:text="${utype==0?'管理员':'商家'}"><b class="caret"></b></span>
                        </span>
                    </a>
                    <ul class="dropdown-menu animated fadeInRight m-t-xs">
                        <li class="divider"></li>
                        <li><a href="/logout">安全退出</a>
                        </li>
                    </ul>
                </div>
                <div class="logo-element"></div>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-home"></i>
                    <span class="nav-label">商户管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li th:if="${utype==99}">
                        <a class="J_menuItem" href="/admin/merchant/index" data-index="0" >商户信息</a>
                    </li>
                    <li th:if="${utype>=39}">
                        <a class="J_menuItem" href="/admin/merchantapp/index">商户应用</a>
                    </li>
                    <li th:if="${utype>=39}">
                        <a class="J_menuItem" href="/admin/merchantconfig/index">商户配置</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/banner/index">首页幻灯片</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/nav/index">首页分类导航</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/store/index">商家店铺管理</a>
                    </li>
                    <li th:if="${templatemsg==-1}">
                        <a class="J_menuItem" href="/admin/templatemsg/index">模板消息设置</a>
                    </li>
                    <li th:if="${utype==-99}">
                        <a class="J_menuItem" href="/admin/tplform/index" data-index="0" >模板表单管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-columns"></i>
                    <span class="nav-label">商品管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/goodscategory/index">商品类目管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/goods/index">商品管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/displayfenlei/index">首页商品栏目</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-columns"></i>
                    <span class="nav-label">订单管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/order/index">订单信息管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/orderrefund/index">商品售后管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-bullhorn"></i>
                    <span class="nav-label">文章管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/newscategory/index">文章类目管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/news/index">文章发布</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/notice/index">通知管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-feed"></i>
                    <span class="nav-label">会员管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/fenxiao/index">会员设置</a>
                    </li><li>
                        <a class="J_menuItem" href="/admin/czfan/index">会员充值</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/fenxiaofan/index">分销返佣设置</a>
                    </li>
                </ul>
            </li>
            <li th:if="${utype>=32}">
                <a href="#">
                    <i class="fa fa-feed"></i>
                    <span class="nav-label">商家财务</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/maccount/index">商户账户管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/maccountflow/index">商户流水管理</a>
                    </li>
                    <li th:if="${version==4}">
                        <a class="J_menuItem" href="/admin/smslog/index">短信日志管理</a>
                    </li>
                </ul>
            </li>
            <li th:if="${utype>=32}">
                <a href="#">
                    <i class="fa fa-feed"></i>
                    <span class="nav-label">储值管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/account/index">用户储值管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/accountflow/index">用户消费管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-user"></i>
                    <span class="nav-label">用户管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/user/index">用户管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/fens/index">粉丝管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/address/index">地址管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/feedback/index">反馈管理</a>
                    </li>
                </ul>
            </li>
            <li th:if="${utype==99}">
                <a href="#">
                    <i class="fa fa-user"></i>
                    <span class="nav-label">客户管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/kehu/index">客户管理</a>
                    </li>
                </ul>
            </li>
            <li th:if="${utype>=32}">
                <a href="#">
                    <i class="fa fa-star"></i>
                    <span class="nav-label">积分管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/jifen/index">用户积分管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/jifenflow/index">积分流水管理</a>
                    </li>
                    <li th:if="${utype>=99}">
                        <a class="J_menuItem" href="/admin/sign/index">用户签到管理</a>
                    </li>
                </ul>
            </li>
            <li>
                <a href="#">
                    <i class="fa fa-user"></i>
                    <span class="nav-label">优惠券</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/coupontpl/index">优惠券模板管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/coupon/index">用户优惠券管理</a>
                    </li>
                </ul>
            </li>
            <li th:if="${utype ge 32}">
                <a href="#">
                    <i class="fa fa-star"></i>
                    <span class="nav-label">营销管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/choujiang/index">幸运大抽奖</a>
                    </li>
                    <li th:if="${utype ge 32}">
                        <a href="#">
                            <i class="fa fa-user"></i>
                            <span class="nav-label">拼团</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="/admin/pintuan/index" >拼团管理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="/admin/pintuanopen/index">发起拼团管理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="/admin/pintuanlog/index">拼团详情管理</a>
                            </li>
                        </ul>
                    </li>
                    <li th:if="${utype ge 32}">
                        <a href="#">
                            <i class="fa fa-user"></i>
                            <span class="nav-label">砍价</span>
                            <span class="fa arrow"></span>
                        </a>
                        <ul class="nav nav-second-level">
                            <li>
                                <a class="J_menuItem" href="/admin/cutprice/index">砍价模板管理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="/admin/cutpricehelp/index">砍价详情管理</a>
                            </li>
                            <li>
                                <a class="J_menuItem" href="/admin/cutpriceopen/index">发起砍价管理</a>
                            </li>
                        </ul>
                    </li>
                </ul>
            </li>
            <li th:if="${umpid==11}">
                <a class="J_menuItem" href="/admin/health/index">
                    <i class="fa fa-columns"></i> <span class="nav-label">健康统计</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/consult/index">
                    <i class="fa fa-columns"></i> <span class="nav-label">商家咨询</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/templatemsg/index">
                    <i class="fa fa-columns"></i> <span class="nav-label">消息模板</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/tplform/index">
                    <i class="fa fa-columns"></i> <span class="nav-label">订阅消息</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/feedback/index">
                    <i class="fa fa-columns"></i> <span class="nav-label">用户反馈</span></a></li>
            <li th:if="${utype>=32}">
                <a class="J_menuItem" href="/admin/logistics/index">
                    <i class="fa fa-line-chart"></i> <span class="nav-label" >物流管理</span></a></li>
            <li th:if="${utype>=99}">
                <a class="J_menuItem" href="/admin/sharestat/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">分享统计</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/resource/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">素材管理</span></a></li>
            <li th:if="${utype>=32}">
                <a class="J_menuItem" href="/admin/card/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">礼品卡</span></a></li>
            <li>
                <a class="J_menuItem" href="/admin/config/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">参数配置</span></a></li>
            <li th:if="${utype==99}">
                <a class="J_menuItem" href="/admin/music/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">背景音乐</span></a></li>
            <li th:if="${utype==99}">
                <a class="J_menuItem" href="/admin/hdtemplate/index">
                    <i class="fa fa-bar-chart"></i> <span class="nav-label">活动模板</span></a></li>
            <li  th:if="${utype==99}">
                <a href="#">
                    <i class="fa fa-star"></i>
                    <span class="nav-label">系统管理</span>
                    <span class="fa arrow"></span>
                </a>
                <ul class="nav nav-second-level">
                    <li>
                        <a class="J_menuItem" href="/admin/user/index">系统用户管理</a></li>
                    <li>
                        <a class="J_menuItem" href="/admin/role/index">角色管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/permission/index">权限管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/rolepermission/index">角色权限管理</a>
                    </li>
                    <li>
                        <a class="J_menuItem" href="/admin/userrole/index">用户权限管理</a>
                    </li>
                </ul>
            </li>
        </ul>
    </div>
</nav>
